import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home.vue'
import Member from '@/views/Member'
import NewsList from '@/views/news/NewsList'
import NewsDetail from '@/views/news/NewsDetail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/member',
      name: 'member',
      component: Member
    },
    {
      path: '/news-list',
      name: 'newslist',
      component: NewsList
    },
    {
      path: '/news-detail/:id',
      name: 'newsdetail',
      component: NewsDetail
    }
  ]
})
